﻿using CSharpLogger.Common;

namespace CSharpLogger
{
    /// <summary>
    /// Defines the contract that clients implements to Log information
    /// </summary>
    /// <remarks>Factory Method: Product</remarks>
    public interface ILoggerHandler
    {
        /// <summary>
        /// Logging messages will be forwarded to registered ILoggerHandler concrect object, which can forward the messages to a variety of destinations, 
        /// including text files, database, email and/or event viewer.
        /// </summary>
        /// <example></example>
        void Log(string message, LogLevel level = LogLevel.INFO);
    }
}
